<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<head>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/login/admin/loadAccount.css">
    <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib uri="/struts-tags" prefix="s" %>
    <title>用户管理界面</title>
</head>
<body>

<div id="accountData">
    <h2 class="page-header">用户帐号信息</h2>
    <c:set var="accountVO" value="${accountVO }"></c:set>
    <div class="table-responsive">
        <table class="table table-striped">
            <tbody>
            <tr>
                <td colspan="2">帐号</td>
                <td colspan="2">${accountVO.loginAccount }</td>
            </tr>
            <tr>
                <td colspan="2">邮箱</td>
                <td colspan="2">${accountVO.email }</td>
            </tr>
            <tr>
                <td colspan="2">注册时间</td>
                <td colspan="2">
                    <fmt:formatDate value="${accountVO.registerTime }"
                                    pattern="yyyy-MM-dd HH:mm:ss"/></td>
            </tr>
            <tr>
                <td><a href="${ctx }/editAccount.action?id=${accountVO.id}">编辑</a></td>
                <td><a href="${ctx }/deleteAccount.action?id=${accountVO.id}">删除</a></td>
                <td><a href="${ctx }/listAccount.action">返回用户列表</a></td>
                <td></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

</body>
</html>
